﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace ElingOA6_Admin_DSJCJ.BLL
{
    public class AttendanceDefined
    {

        /// <summary>
        /// Dal定义的便利
        /// </summary>
        private readonly DAL.AttendanceDefined dal = new DAL.AttendanceDefined();
        /// <summary>
        /// 
        /// </summary>
        /// <param name="entityNo"></param>
        /// <returns></returns>
        public DataTable GetAllListTable(string entityNo)
        {
            return dal.GetAllList(entityNo).Tables[0];
        }
        public DataTable GetAllListWithOutIsMainPosition(string entityNo)
        {
            return dal.GetAllListWithOutIsMainPosition(entityNo).Tables[0];
        }
        /// <summary>
        /// 需要网上考勤的人员名单
        /// </summary>
        /// <param name="entityNo"></param>
        /// <returns></returns>
        public DataTable GetListByEntityNo(string entityNo) 
        {
            return dal.GetListByEntityNo(entityNo).Tables[0];
        }

        public void UpdataEmpl(List<Model.HREmpl> emplModelList)
        {
            dal.UpdataEmpl(emplModelList);
        }
        
    }
}
